package ar.edu.utn.frba.disenio.arena.transformers;

import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

import ar.edu.utn.frba.disenio.Asiento;

import com.uqbar.commons.collections.Transformer;

public class FechaTransformer implements Transformer<Asiento, String> {

	@Override
	public String transform(Asiento asiento) {
		DateTimeFormatter dateFormat = DateTimeFormat.forPattern("dd/MM/YYYY");
		
		return asiento.getSalida().toString(dateFormat);
	}

}
